<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>科院酒店预订管理系统</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <!-- <link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->
    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">

</head>

<body>

<div th:insert="~{admin/commons/commons::nav}"></div>

<div class="container-fluid">
    <div class="row">

        <div th:insert="~{admin/commons/commons::sidebar}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h1 style="margin-bottom: 20px">客户管理</h1>
            <div class="input-group input-group-sm">
                客户名称： <input
                    style="height: 23px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px; "
                    type="text" class="btn-control" placeholder="username" aria-describedby="sizing-addon3">
                真实姓名： <input
                    style="height: 23px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px; "
                    type="text" class="btn-control" placeholder="name" aria-describedby="sizing-addon3">
                <a class="btn btn-sm btn-success"
                   style="text-align: center; height: 30px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px; padding-bottom: 5px;">搜索</a>
                <a th:href="@{/skip/toCustomerAdd}" class="btn btn-sm btn-success"
                   style="text-align: center; height: 30px;width:100px;margin-bottom: 10px; margin-left: 15px;margin-right: 15px; padding-left: 5px; padding-bottom: 10px;">添加用户</a>
            </div>
            <div class="table-responsive">
                <table class="table table-striped table-sm">
                    <thead>
                    <tr>
                        <th>客户编号</th>
                        <th>客户名称</th>
                        <th>真实姓名</th>
                        <th>身份证号</th>
                        <th>手机号码</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="cs:${customer}">
                        <th th:text="${cs.getId()}"></th>
                        <td th:text="${cs.getUsername()}"></td>
                        <td th:text="${cs.getRealName()}"></td>
                        <td th:text="${cs.getIdCard()}"></td>
                        <td th:text="${cs.getMobile()}"></td>
                        <td>
                            <a class="btn btn-primary btn-sm" th:href="@{'/toUpdateCustomer/'+${cs.getId()}}">修改</a>
                            <a class="btn btn-sm btn-danger" th:href="@{'/deletedCustomer/'+${cs.getId()}}">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </main>
    </div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" th:src="@{/js/jquery-1.8.3.min.js}"></script>
<script type="text/javascript" th:src="@{/js/popper.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
<!-- Icons -->
<script type="text/javascript" th:src="@{/js/feather.min.js}"></script>
<script>

</script>
</body>
</html>